<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width,minimum-scale=1.0,maximum-scale=1.0"/>
    <title>React 学习！！</title>
</head>
<body>
<div id="app"></div>
<script src="../bower_components/react/react.min.js"></script>
<script src="../bower_components/react/react-dom.min.js"></script>
<script src="../bower_components/react/browser.min.js"></script>
<script type="text/babel">
   
    var ReactComponent = React.createClass({
      render:function(){    
        var propsValue = "Hello React";

        return (  <div>
                    <h1>React Component</h1>
                    This is props value: {propsValue}
                  </div>
               )
      }
    });

    //React data bind用props和state 作为数据绑定的载体
    
    ReactDOM.render( <ReactComponent/>, 
      document.getElementById('app'),
      function(){
        console.log('渲染完成啦！！');
      }
    )
    
</script>
</body>
</html>